﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Parturition.Domain.Migrations
{
    public partial class 添加羊只状态字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "MarkId",
                table: "ParturitionModel");

            migrationBuilder.DropColumn(
                name: "SheepFileId",
                table: "ParturitionModel");

            migrationBuilder.AddColumn<bool>(
                name: "SheepStatus",
                table: "ParturitionModel",
                type: "bit",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SheepStatus",
                table: "ParturitionModel");

            migrationBuilder.AddColumn<int>(
                name: "MarkId",
                table: "ParturitionModel",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SheepFileId",
                table: "ParturitionModel",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
